<?php

namespace app\payment\model;

use app\payment\model\App as AppModel;
use think\Model;

/**
 * 用户手机号黑名单模型
 */
class Mobileblacklist extends Model
{

    // 设置当前模型对应的完整数据表名称
    protected $name = 'payment_mobile_blacklist';
    // 自动写入时间戳
    protected $autoWriteTimestamp = true;

    /**
     * 获取应用名称
     * @param  array $app_id 应用id
     * @return mixed
     */
    public static function appName($app_id = '')
    {
        return AppModel::where(['id' => $app_id])->value('app_name');
    }
}
